# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-enlighten
_pkgname=enlighten
pkgver=1.14.1
pkgrel=1
pkgdesc='Enlighten Progress Bar.'
arch=('any')
url='https://pypi.org/project/enlighten/#files'
depends=('python' 'python-blessed' 'python-wcwidth' 'python-six'
         'python-prefixed')
makedepends=('python-setuptools')
license=('MIT')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('c6d9e05614d6eb24ed095ee943644dfc7c3ebff325da3d7695dad6cdbd3338720acd47273bb786657f5f89a2790172a2e9f66a9d42900c06926fe6344f1d5a4c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

